import myaxios from "../MyAxios"
import BASEURL from '../BaseUrl'
const {BMDURL} =BASEURL
const directorApi={
    queryAll(){
        let params={page:1,pagesize:5}
        myaxios.get(BMDURL+'/movie-directors',params)
    },
    add(params){
        return myaxios.post(BMDURL+'/movie-director/add',params)
    },
    queryByNameLike(params){
        return myaxios.post(BMDURL+'/movie-directors/name',params)
    },
    del(params){
        return myaxios.post(BMDURL+'/movie-director/del',params)
    }
}
export default directorApi